﻿
using System.Windows;

namespace Red.Controls.Depot.ViewModels
{
    /// <summary>
    /// 
    /// </summary>
    public class FileViewItemDirectory : FileViewItem
    {
        #region C-tor

        public bool IsFake { get; private set; }

        public FileViewItemDirectory( string path, string title, bool isFake )
            : base( path, title, null, "", true )
        {
            IsFake = isFake;
        }

        #endregion C-tor

        #region Public methods

        public override string GetP4SyncPath()
        {
            return Path + "\\...";
        }

        public override IDataObject GetDraggedData()
        {
            return IsFake ? null : new DataObject( "Red.DepotDirectory", Path );
        }

        #endregion Public methods
    }
}
